package dao

import (
	"time"
)

// 这是 SysBaseMenuParameter 的全局公开dao对象
var SysBaseMenuParameterDao = sysBaseMenuParameterDao{}

// 这是 sys_base_menu_parameter表 的实体类
type SysBaseMenuParameter struct {
	Id            int       `json:"id" form:"id" binding:"id"`
	CreatedAt     time.Time `json:"created_at" form:"created_at" binding:"created_at"`
	UpdatedAt     time.Time `json:"updated_at" form:"updated_at" binding:"updated_at"`
	DeletedAt     time.Time `json:"deleted_at" form:"deleted_at" binding:"deleted_at"`
	SysBaseMenuId int       `json:"sys_base_menu_id" form:"sys_base_menu_id" binding:"sys_base_menu_id"`
	Type          string    `json:"type" form:"type" binding:"type"`    // 地址栏携带参数为params还是query
	Key           string    `json:"key" form:"key" binding:"key"`       // 地址栏携带参数的key
	Value         string    `json:"value" form:"value" binding:"value"` // 地址栏携带参数的值

}

// 注意:这是 SysBaseMenuParameter 的私有dao对象
type sysBaseMenuParameterDao struct {
	Obj    SysBaseMenuParameter
	Insert func(arg SysBaseMenuParameter) int                  //插入一条记录
	Update func(arg SysBaseMenuParameter) int                  //更新一条记录
	Delete func(arg SysBaseMenuParameter) int                  //删除一条记录
	Select func(arg SysBaseMenuParameter) SysBaseMenuParameter //获取一条记录
}
